package com.hzlx.records.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 工序执行记录对象 mes_operation_records
 * 
 * @author dk
 * @date 2025-06-30
 */
public class OperationRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Integer productTypeId;

    public Integer getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(Integer productTypeId) {
        this.productTypeId = productTypeId;
    }

    /** 记录id */
    private Long recordId;

    /** 工单id */
    @Excel(name = "工单id")
    private int workOrderId;

    /** 工序id */
    @Excel(name = "工序id")
    private int operationId;

    /** 设备id */
    @Excel(name = "设备id")
    private int equipmentId;

    /** 操作员 */
    @Excel(name = "操作员")
    private int operatorId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 良品数量 */
    @Excel(name = "良品数量")
    private Long goodQuantity;

    /** 报废数量 */
    @Excel(name = "报废数量")
    private Long scrapQuantity;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public int getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(int workOrderId) {
        this.workOrderId = workOrderId;
    }

    public int getOperationId() {
        return operationId;
    }

    public void setOperationId(int operationId) {
        this.operationId = operationId;
    }

    public int getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(int equipmentId) {
        this.equipmentId = equipmentId;
    }

    public int getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(int operatorId) {
        this.operatorId = operatorId;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setGoodQuantity(Long goodQuantity) 
    {
        this.goodQuantity = goodQuantity;
    }

    public Long getGoodQuantity() 
    {
        return goodQuantity;
    }

    public void setScrapQuantity(Long scrapQuantity) 
    {
        this.scrapQuantity = scrapQuantity;
    }

    public Long getScrapQuantity() 
    {
        return scrapQuantity;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("workOrderId", getWorkOrderId())
            .append("operationId", getOperationId())
            .append("equipmentId", getEquipmentId())
            .append("operatorId", getOperatorId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("goodQuantity", getGoodQuantity())
            .append("scrapQuantity", getScrapQuantity())
            .append("status", getStatus())
            .append("notes", getNotes())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
                .append("productTypeId",getProductTypeId())
            .toString();
    }
}
